# import math
# #输入年月日
# year, m, q = map(int, input().split(" "))
# #对1月和2月进行特殊处理
# if m == 1 or m == 2:
#     year -= 1
#     m += 12
# #计算世纪
# j = year  // 100
# #公式,计算星期
# k = year % 100
# h = (q + 26 * (m + 1) / 10 + k + k / 4 + j / 4 + 5 * j) % 7
# #取整
# h = math.floor(h)
# result = ""
# if h == 0:
#     result = "星期六"
# elif h == 1:
#     result = "星期日"
# elif h == 2:
#     result = "星期一"
# elif h == 3:
#     result = "星期二"
# elif h == 4:
#     result = "星期三"
# elif h == 5:
#     result = "星期四"
# elif h == 6:
#     result = "星期五"
# print(result)
# #输入四个坐标
# x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split(" "))
# #求直线A
# a1 = y1 - y2
# b1 = - (x1 - x2)
# c1 = (y1 - y2) * x1 - (x1 - x2) * y1
# #求直线B
# a2 = y3 - y4
# b2 = - (x3 - x4)
# c2 = (y3 - y4) * x3 - (x3 - x4) * y3
# #计算行列式
# D = a1 * b2 - a2 * b1
# #判断两条线的关系
# if D == 0:
#     print("两条直线平行")
# else:
#     #根据克莱姆法则计算交点坐标
#     x = (b2 * c1 - b1 * c2) / D
#     y = (a1 * c2 - a2 * c1) / D
#     print(f'{x:.2f}, {y:.2f}')
#第一个矩形
# x1, y1, w1, h1 = map(float, input().split(" "))
# #第二个矩形
# x2, y2, w2, h2 = map(float, input().split(" "))
# #判断关系
# if abs(x1 - x2) <= abs(w1 / 2 - w2 / 2) and abs(y1 - y2 ) <= abs(h1 / 2 - h2 / 2):
#     print("包含")
# elif abs(x1 - x2 ) <= abs(w1 / 2 + w2 / 2) and abs(y1  - y2) <= abs(h1 / 2 + h2 / 2):
#     print("重叠")
# else:
#     print("相离")




"""
h
q 天数
m 月份
j 世纪 
k 年份
"""
# import math
# year, m, q = map(int, input().split(" "))
# if m ==1 or m ==2:
#     year -= 1
#     m += 12
# j = year // 100
# k = year % 100
# #对1月和2月进行特殊处理
# h = (q + 26 * (m + 1) / 10 + k + k / 4 +j / 4 + 5 * j) % 7
# h = math.floor(h)
# #判断是周几
# result = ""
# if h == 0:
#     result = "星期六"
# elif h == 1:
#     result = "星期日"
# elif h == 2:
#     result = "星期一"
# elif h == 3:
#     result = "星期二"
# elif h == 4:
#     result = "星期三"
# elif h == 5:
#     result = "星期四"
# elif h == 6:
#     result = "星期五"
# print(result)


# x1, y1, x2, y2, x3, y3, x4, y4 = map(float, input().split(" "))
# #求直线A
# a1 = y1 - y2
# b1 = -(x1 - x2)
# c1 =(y1 -y2)* x1 - (x1 - x2) * y1
# #求直线B
# a2 = y3 - y4
# b2 = - (x3 - x4)
# c2 = (y3 - y4) * x3 - (x3 - x4)* y3

# #求行列式D
# D = a1 * b2 - a2 * b1
# #判断是否是平行
# if D == 0:
#     print("两条直线平行")
# else:
#     #求交点坐标 格莱姆法则
#     x = (b2 * c1 - b1 * c2) / D
#     y = (a1 * c2 - a2 * c1) / D
#     print(f'{x:.2f},{y:.2f}')


#第一个矩形
x1, y1, w1, h1 = map(float, input().split(" "))
#第二个
x2, y2, w2, h2 = map(float, input().split(" "))
#判断关系
if abs(x1 - x2) <= abs(w1 / 2 - w2 / 2)  and abs(y1 - y2) <= abs(h1 / 2 - h2 / 2):
    print("包含")
elif abs(x1 - x2) <= abs(w1 /2 + w2 /2) and abs(y1 - y2) <= abs(h1 / 2 + h2 / 2):
    print("重叠")
else:
    print("相离")